home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / graphic / tpega.zip / GPRECT.P < prev    next >
Text File  |  1986-02-01  |  508b  |  17 lines

  1. {                                                                             }
  2. {       EGA Graphic Primitive for Turbo Pascal 3.01A, Version 01FEB86.        }
  3. {       (C) 1986 by Kent Cedola, 2015 Meadow Lake Ct., Norfolk, VA, 23518     }
  4. {                                                                             }
  5.  
  6. procedure GPRECT(X2,Y2: Integer);
  7. var
  8.   X1, Y1: Integer;
  9. begin
  10.   X1 := GDCUR_X;
  11.   Y1 := GDCUR_Y;
  12.   GPLINE(X1,Y2);
  13.   GPLINE(X2,Y2);
  14.   GPLINE(X2,Y1);
  15.   GPLINE(X1,Y1);
  16. end;
  17.